import request from '@/utils/request'

// 查询项目管控列表
export function listProjectChanges(query) {
  return request({
    url: '/gs/projectChanges/list',
    method: 'get',
    params: query
  })
}

// 查询项目管控详细
export function getProjectChanges(id) {
  return request({
    url: '/gs/projectChanges/' + id,
    method: 'get'
  })
}

// 新增项目管控
export function addProjectChanges(data) {
  return request({
    url: '/gs/projectChanges',
    method: 'post',
    data: data
  })
}

// 修改项目管控
export function updateProjectChanges(data) {
  return request({
    url: '/gs/projectChanges',
    method: 'put',
    data: data
  })
}

// 删除项目管控
export function delProjectChanges(id) {
  return request({
    url: '/gs/projectChanges/' + id,
    method: 'delete'
  })
}

// 项目管控审核
export function auditProjectChanges(id) {
  return request({
    url: '/gs/projectChanges/auditProjectChanges/' + id,
    method: 'post'
  })
}
